1: | minus(x,0) | → x | |
2: | minus(0,y) | → 0 | |
3: | minus(s(x),s(y)) | → minus(p(s(x)),p(s(y))) | |
4: | minus(x,plus(y,z)) | → minus(minus(x,y),z) | |
5: | p(s(s(x))) | → s(p(s(x))) | |
6: | p(0) | → s(s(0)) | |
7: | div(s(x),s(y)) | → s(div(minus(x,y),s(y))) | |
8: | div(plus(x,y),z) | → plus(div(x,z),div(y,z)) | |
9: | plus(0,y) | → y | |
10: | plus(s(x),y) | → s(plus(y,minus(s(x),s(0)))) | |
11: | MINUS(s(x),s(y)) | → MINUS(p(s(x)),p(s(y))) | |
12: | MINUS(s(x),s(y)) | → P(s(x)) | |
13: | MINUS(s(x),s(y)) | → P(s(y)) | |
14: | MINUS(x,plus(y,z)) | → MINUS(minus(x,y),z) | |
15: | MINUS(x,plus(y,z)) | → MINUS(x,y) | |
16: | P(s(s(x))) | → P(s(x)) | |
17: | DIV(s(x),s(y)) | → DIV(minus(x,y),s(y)) | |
18: | DIV(s(x),s(y)) | → MINUS(x,y) | |
19: | DIV(plus(x,y),z) | → PLUS(div(x,z),div(y,z)) | |
20: | DIV(plus(x,y),z) | → DIV(x,z) | |
21: | DIV(plus(x,y),z) | → DIV(y,z) | |
22: | PLUS(s(x),y) | → PLUS(y,minus(s(x),s(0))) | |
23: | PLUS(s(x),y) | → MINUS(s(x),s(0)) | |